﻿using System;
using System.Collections.Generic;
using System.Text;

namespace OgilvyOne.Model
{
    public class MemberInfoModel
    {
        private int memberid;
        private string username;
        private string userimg = ""; //会员头像
        private string member_nickname = "";
        private string password = "";
        private string member_name = "";
        private string user_type = "1";
        private string tel = "";
        private string moblie = "";
        private string postcode = "";
        private string address = "";
        private DateTime reg_time;
        private string ip = "";
        private DateTime last_login_time;//最后登录时间
        private int state = 1;

        private string email = "";
        private string sex = "";
        private string birthday = "";
        private string city = "";
        private string interst = "";
        private string love_content = "";

        private string colltitle = "";//收藏文章标题
        private DateTime colltime;//文章收藏时间
        private int collaid;//文章ID
        private int cid;//栏目ID
        private string cname;//栏目名称
        private int cout;//该栏目下文章收藏总数

        public int Cout
        {
            get { return cout; }
            set { cout = value; }
        }
        public string Cname
        {
            get { return cname; }
            set { cname = value; }
        }
        public int Cid
        {
            get { return cid; }
            set { cid = value; }
        }
        public int CollAid
        {
            get { return collaid; }
            set { collaid = value; }
        }

        public string CollTitle
        {
            set { colltitle = value; }
            get { return colltitle; }
        }
        public DateTime CollTime
        {
            get { return colltime; }
            set { colltime = value; }
        }

        public string Email
        {
            set { email = value; }
            get { return email; }
        }
        public string Sex
        {
            set { sex = value; }
            get { return sex; }

        }
        public string Birthday
        {
            set { birthday = value; }
            get { return birthday; }
        }
        public string City
        {
            set { city = value; }
            get { return city; }
        }
        public string Interst
        {
            set { interst = value; }
            get { return interst; }
        }
        public string LoveContent
        {
            set { love_content = value; }
            get { return love_content; }
        }

        public string Userimg
        {
            get { return userimg; }
            set { userimg = value; }
        }

        public int State
        {
            set { state = value; }
            get { return state; }
        }

        public int Memberid
        {
            set { memberid = value; }
            get { return memberid; }
        }
        public string Username
        {
            set { username = value; }
            get { return username; }
        }
        public string MemberNickname
        {
            set { member_nickname = value; }
            get { return member_nickname == null || member_nickname == "" ? username : member_nickname; }
        }
        public string Password
        {
            set { password = value; }
            get { return password; }
        }
        public string Membername
        {
            set { member_name = value; }
            get { return member_name; }
        }
        public string UserType
        {
            set { user_type = value; }
            get { return user_type; }
        }
        public string Tel
        {
            set { tel = value; }
            get { return tel; }
        }
        public string Moblie
        {
            set { moblie = value; }
            get { return moblie; }
        }
        public string Postcode
        {
            set { postcode = value; }
            get { return postcode; }
        }
        public string Address
        {
            set
            {
                address = value;
            }
            get { return address; }
        }
        public string RegTimeShort
        {
            get { return reg_time.ToShortDateString(); }
        }
        public DateTime RegTime
        {
            set { reg_time = value; }
            get { return reg_time; }
        }
        public string Ip
        {
            set { ip = value; }
            get { return ip; }
        }
        public DateTime LastLoginTime
        {
            set { last_login_time = value; }
            get { return last_login_time; }
        }
    }
}
